import request from '@/utils/request'

//获取现场类表格
export function getXianChangTable(page, pageSize, keyWord, projectName, subprojectName) {
  return request({
    url: `/statementManage2/getXianChangTable?page=${page}&pageSize=${pageSize}&keyWord=${keyWord}&projectName=${projectName}&subprojectName=${subprojectName}`,
    method: 'GET'
  })
}

export function getWeldTablePreview(subprojectId, keyWord) {
  return request({
    url: `/statementManage2/getWeldTablePreview?subprojectId=${subprojectId}&keyWord=${keyWord}`,
    method: 'GET'
  })
}

export function getMechinalTablePreview(subprojectId, keyWord) {
  return request({
    url: `/statementManage2/getMechinalTablePreview?subprojectId=${subprojectId}&keyWord=${keyWord}`,
    method: 'GET'
  })
}

export function getSiteJianZhengPreview(subprojectId, keyWord) {
  return request({
    url: `/statementManage2/getSiteJianZhengPreview?subprojectId=${subprojectId}&keyWord=${keyWord}`,
    method: 'GET'
  })
}

// 导出钢筋机械连接工艺检台账
export function exportMechanicalProcessCheckByTemplate(subprojectId) {
  return request({
    url: `/statementManage2/exportMechanicalProcessCheckByTemplate?subprojectId=${subprojectId}`,
    method: 'get',
    responseType: 'blob'
  })
}

// 导出钢筋机械连接施工检台账
export function exportMechanicalConstructionCheckByTemplate(subprojectId) {
  return request({
    url: `/statementManage2/exportMechanicalConstructionCheckByTemplate?subprojectId=${subprojectId}`,
    method: 'get',
    responseType: 'blob'
  })
}

// 导出钢筋焊接工艺检台账
export function exportWeldProcessCheckByTemplate(subprojectId) {
  return request({
    url: `/statementManage2/exportWeldProcessCheckByTemplate?subprojectId=${subprojectId}`,
    method: 'get',
    responseType: 'blob'
  })
}

// 导出钢筋焊接施工检台账
export function exportWeldConstructionCheckByTemplate(subprojectId) {
  return request({
    url: `/statementManage2/exportWeldConstructionCheckByTemplate?subprojectId=${subprojectId}`,
    method: 'get',
    responseType: 'blob'
  })
}

// 导出钢筋机械连接见证取样记录
export function exportMechanicalJianZhengByTemplate(subprojectId) {
  return request({
    url: `/statementManage2/exportMechanicalJianZhengByTemplate?subprojectId=${subprojectId}`,
    method: 'get',
    responseType: 'blob'
  })
}

// 导出钢筋焊接见证取样记录
export function exportWeldJianZhengByTemplate(subprojectId) {
  return request({
    url: `/statementManage2/exportWeldJianZhengByTemplate?subprojectId=${subprojectId}`,
    method: 'get',
    responseType: 'blob'
  })
}

